package com.qf.j2112.service.impl;

import com.qf.j2112.mapper.AddressMapper;
import com.qf.j2112.po.Address;
import com.qf.j2112.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {

    @Resource
    private AddressMapper addressMapper;

    @Override
    public List<Address> findAll() {
        return addressMapper.findAll();
    }

    @Override
    public Address findOne(int id) {
        Address address = addressMapper.findOne(id);
        return address;
    }
}
